41 research outputs found

    Prompting Is All Your Need: Automated Android Bug Replay with Large Language Models

    Full text link
    Bug reports are vital for software maintenance that allow users to inform developers of the problems encountered while using the software. As such, researchers have committed considerable resources toward automating bug replay to expedite the process of software maintenance. Nonetheless, the success of current automated approaches is largely dictated by the characteristics and quality of bug reports, as they are constrained by the limitations of manually-crafted patterns and pre-defined vocabulary lists. Inspired by the success of Large Language Models (LLMs) in natural language understanding, we propose AdbGPT, a new lightweight approach to automatically reproduce the bugs from bug reports through prompt engineering, without any training and hard-coding effort. AdbGPT leverages few-shot learning and chain-of-thought reasoning to elicit human knowledge and logical reasoning from LLMs to accomplish the bug replay in a manner similar to a developer. Our evaluations demonstrate the effectiveness and efficiency of our AdbGPT to reproduce 81.3% of bug reports in 253.6 seconds, outperforming the state-of-the-art baselines and ablation studies. We also conduct a small-scale user study to confirm the usefulness of AdbGPT in enhancing developers' bug replay capabilities.Comment: Accepted to 46th International Conference on Software Engineering (ICSE 2024

    Efficiency Matters: Speeding Up Automated Testing with GUI Rendering Inference

    Full text link
    Due to the importance of Android app quality assurance, many automated GUI testing tools have been developed. Although the test algorithms have been improved, the impact of GUI rendering has been overlooked. On the one hand, setting a long waiting time to execute events on fully rendered GUIs slows down the testing process. On the other hand, setting a short waiting time will cause the events to execute on partially rendered GUIs, which negatively affects the testing effectiveness. An optimal waiting time should strike a balance between effectiveness and efficiency. We propose AdaT, a lightweight image-based approach to dynamically adjust the inter-event time based on GUI rendering state. Given the real-time streaming on the GUI, AdaT presents a deep learning model to infer the rendering state, and synchronizes with the testing tool to schedule the next event when the GUI is fully rendered. The evaluations demonstrate the accuracy, efficiency, and effectiveness of our approach. We also integrate our approach with the existing automated testing tool to demonstrate the usefulness of AdaT in covering more activities and executing more events on fully rendered GUIs.Comment: Proceedings of the 45th International Conference on Software Engineerin

    Towards Efficient Record and Replay: A Case Study in WeChat

    Full text link
    WeChat, a widely-used messenger app boasting over 1 billion monthly active users, requires effective app quality assurance for its complex features. Record-and-replay tools are crucial in achieving this goal. Despite the extensive development of these tools, the impact of waiting time between replay events has been largely overlooked. On one hand, a long waiting time for executing replay events on fully-rendered GUIs slows down the process. On the other hand, a short waiting time can lead to events executing on partially-rendered GUIs, negatively affecting replay effectiveness. An optimal waiting time should strike a balance between effectiveness and efficiency. We introduce WeReplay, a lightweight image-based approach that dynamically adjusts inter-event time based on the GUI rendering state. Given the real-time streaming on the GUI, WeReplay employs a deep learning model to infer the rendering state and synchronize with the replaying tool, scheduling the next event when the GUI is fully rendered. Our evaluation shows that our model achieves 92.1% precision and 93.3% recall in discerning GUI rendering states in the WeChat app. Through assessing the performance in replaying 23 common WeChat usage scenarios, WeReplay successfully replays all scenarios on the same and different devices more efficiently than the state-of-the-practice baselines

    Rivulet: 3D Neuron Morphology Tracing with Iterative Back-Tracking

    Get PDF
    The digital reconstruction of single neurons from 3D confocal microscopic images is an important tool for understanding the neuron morphology and function. However the accurate automatic neuron reconstruction remains a challenging task due to the varying image quality and the complexity in the neuronal arborisation. Targeting the common challenges of neuron tracing, we propose a novel automatic 3D neuron reconstruction algorithm, named Rivulet, which is based on the multi-stencils fast-marching and iterative backtracking. The proposed Rivulet algorithm is capable of tracing discontinuous areas without being interrupted by densely distributed noises. By evaluating the proposed pipeline with the data provided by the Diadem challenge and the recent BigNeuron project, Rivulet is shown to be robust to challenging microscopic imagestacks. We discussed the algorithm design in technical details regarding the relationships between the proposed algorithm and the other state-of-the-art neuron tracing algorithms

    Clique Identification and Propagation for Multimodal Brain Tumor Image Segmentation

    Get PDF
    Brain tumors vary considerably in size, morphology, and location across patients, thus pose great challenge in automated brain tumor segmentation methods. Inspired by the concept of clique in graph theory, we present a clique-based method for multimodal brain tumor segmentation that considers a brain tumor image as a graph and automatically segment it into different sub-structures based on the clique homogeneity. Our proposed method has three steps, neighborhood construction, clique identification, and clique propagation. We constructed the neighborhood of each pixel based on its similarities to the surrounding pixels, and then extracted all cliques with a certain size k to evaluate the correlations among different pixels. The connections among all cliques were represented as a transition matrix, and a clique propagation method was developed to group the cliques into different regions. This method is also designed to accommodate multimodal features, as multimodal neuroimaging data is widely used in mapping the tumor-induced changes in the brain. To evaluate this method, we conduct the segmentation experiments on the publicly available Multimodal Brain Tumor Image Segmentation Benchmark (BRATS) dataset. The qualitative and quantitative results demonstrate that our proposed clique-based method achieved better performance compared to the conventional pixel-based methods

    Reconstruction of 3D neuron morphology using Rivulet back-tracking

    Get PDF
    The 3D reconstruction of neuronal morphology is a powerful technique for investigating nervous systems. Due to the noises in optical microscopic images, the automated reconstruction of neuronal morphology has been a challenging problem. We propose a novel automatic neuron reconstruction algorithm, Rivulet, to target the challenges raised by the poor quality of the optical microscopic images. After the neuron images being de-noised with an anisotropic filter, the Rivulet algorithm combines multi-stencils fast-marching and iterative back-tracking from the geodesic farthest point on the segmented foreground. The neuron segments are dumped or merged according to a set of criteria at the end of each iteration. The proposed Rivulet tracing algorithm is evaluated with data provided from the BigNeuron Project. The experimental results demonstrate that Rivulet outperforms the compared state-of-the-art tracing methods when the images are of poor quality

    Subject-centered multi-view feature fusion for neuroimaging retrieval and classification

    Get PDF
    Multi-View neuroimaging retrieval and classification play an important role in computer-aided-diagnosis of brain disorders, as multi-view features could provide more insights of the disease pathology and potentially lead to more accurate diagnosis than single-view features. The large inter-feature and inter-subject variations make the multi-view neuroimaging analysis a challenging task. Many multi-view or multi-modal feature fusion methods have been proposed to reduce the impact of inter-feature variations in neuroimaging data. However, there is not much in-depth work focusing on the inter-subject variations. In this study, we propose a subject-centered multi-view feature fusion method for neuroimaging retrieval and classification based on the propagation graph fusion (PGF) algorithm. Two main advantages of the proposed method are: 1) it evaluates the query online and adaptively reshapes the connections between subjects according to the query; 2) it measures the affinity of the query to the subjects using the subject-centered affinity matrices, which can be easily combined and efficiently solved. Evaluated using a public accessible neuroimaging database, our algorithm outperforms the state-of-the-art methods in retrieval and achieves comparable performance in classification

    Longitudinal brain MR retrieval with diffeomorphic demons registration: What happened to those patients with similar changes?

    Get PDF
    Current medical content-based retrieval (MCBR) systems for neuroimaging data mainly focus on retrieving the cross-sectional neuroimaging data with similar regional or global measurements. The longitudinal pathological changes along different time-points are usually neglected in such MCBR systems. We propose the cross-registration based retrieval for longitudinal MR data to retrieve patients with similar structural changes as an extension to the existing MCBR systems. The diffeomorphic demons registration is used to extract the tissue deformation between two adjacent MR volumes. An asymmetric square dissimilarity matrix is designed for indexing the patient changes within a specific interval. A visual demonstration is given to show the registration displacement fields of the query as compared to the simulated results. The experimental performance with the mean average precision (mAP) and the average top-K accuracy (aACC) are reported for evaluation

    Content-Based Retrieval of Brain Diffusion Magnetic Resonance Image

    Get PDF
    The content-based retrieval of diffusion magnetic resonance (dMR) imaging data would enable a wide range of analyses on large databases with dMR images.This paper proposes a content-based retrieval framework for dMR images to explore the use of Diffusion Tensor Imaging (DTI) - derived parameters. The propagation graph algorithm is proposed for the query-centric retrieval of dMR subjects and the fusion of different features. The proposed framework was evaluated with ADNI database with 233 baseline dMR images. The preliminary results show that the proposed retrieval framework is able to retrieve subjects with similar neurodegenerative patterns
    corecore